<div class="bjui-pageHeader">
    <a href="{:U('Article/modelAdd')}" class="btn btn-green" data-toggle="dialog" data-width="520" data-height="320" data-id="dialog-mask" data-mask="true">{:L('add_model')}</a>
    <a href="{:U('Article/modelTrans')}" class="btn btn-green" data-toggle="doajax" data-mask="true">phpcms模型转换</a>
</div>
<div class="bjui-pageContent tableContent">
    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
            <tr>
                <th width="100">modelid</th>
                <th width="100"><?php echo L('model_name');?></th>
                <th width="100">
                    <?php echo L('tablename');?>
                </th>
                <th>
                    <?php echo L('description');?>
                </th>
                <th width="100">
                    <?php echo L('status');?>
                </th>
                <th width="100">
                    <?php echo L('items');?>
                </th>
                <th width="230">
                    <?php echo L('operations_manage');?>
                </th>
            </tr>
        </thead>
        <tbody>
            <foreach name="page_list" item="item">
                <tr data-id="{$item.modelid}">
                    <td>{$item.modelid}</td>
                    <td>{$item.name}
                    </td>
                    <td>{$item.tablename}</td>
                    <td align="center">{$item.description}</td>
                    <td>
                    </td>
                    <td>
                        {$item.items}
                    </td>
                    <td align="center">
                        <a class="btn btn-green" href="{:U('Article/modelField?modelid='.$item['modelid'])}" data-toggle="navtab" data-id="Article_modelField" data-title="{$item.name}字段管理"><span>字段管理</span></a>
                        <a class="btn btn-green" href="{:U('Article/modelEdit?modelid='.$item['modelid'])}" data-toggle="dialog" data-width="520" data-height="320" data-id="article_edit" data-title="编辑-{$item.title}"><span>{:L('edit')}</span></a>
                        <a class="btn btn-red" href="{:U('Article/modelDelete', ['modelid' => $item['modelid']])}" data-toggle="doajax" data-confirm-msg="{:L('confirm_delete_model', array('message'=>addslashes($item['tablename'])))}">{:L('delete')}</a>
                    </td>
                </tr>
            </foreach>
        </tbody>
    </table>
</div>